apbh_dma: return error value on timeout
authorWolfram Sang <[email protected]>
Fri, 18 Nov 2011 01:17:44 +0000 (01:17 +0000)
committerAlbert ARIBAUD <[email protected]>
Tue, 6 Dec 2011 22:59:40 +0000 (23:59 +0100)
When a timeout occurs, the return value is prepared but never returned.
Fix that.

Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Cc: Marek Vasut <[email protected]>
Acked-by: Stefano Babic <[email protected]>
drivers/dma/apbh_dma.c

index 69a10428ef241581a44bf0cd9436acb1987d3e99..40009744835466ce4db299e4972f3b26ba8600ff 100644 (file)
@@ -606,7 +606,7 @@ int mxs_dma_wait_complete(uint32_t timeout, unsigned int chan)
                mxs_dma_reset(chan);
        }
 
-       return 0;
+       return ret;
 }
 
 /*